package DP.decoration.school;

import DP.decoration.school.component.SchoolReport;
import DP.decoration.school.component.impl.FourthGradeSchoolReport;
import DP.decoration.school.decorator.impl.HighScoreDecorator;
import DP.decoration.school.decorator.impl.SortDecorator;

/**
 * @author msi
 * 场景类
 */
public class Father {
    public static void main(String[] args) {
        SchoolReport schoolReport;
        schoolReport=new FourthGradeSchoolReport();
        schoolReport=new HighScoreDecorator(schoolReport);
        schoolReport=new SortDecorator(schoolReport);
        schoolReport.report();
        schoolReport.sign();
    }
}
